package com.pluto.order.feign;

import com.pluto.order.feign.fallback.ProductFeignClientFallback;
import com.pluto.product.bean.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "service-product",contextId = "productFeignClient",fallback = ProductFeignClientFallback.class)
public interface ProductFeignClient {

	@GetMapping("/product/{productId}")
	Product getProductById(@PathVariable("productId") String productId);

}
